const Angular = require('angular');
const app = Angular.module('layerApp', []);
import layerServices from '../../services/layerServices';
import authCtr from '../../directives/authCtr';
layerServices(app);
authCtr(app);
app.controller('layerCtrl', ['$scope', '$layer', function ($scope, $layer) {
  $scope.title = 'layer相关弹窗样式';
  $scope.showMsg = function (index) {
    $layer.msg('hello', { icon: index, time: 2000 * index });
  }
  $scope.showAlert = function () {
    $layer.alert();
  }
}])
